package com.maimao.model.order.confirm;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.maimao.model.cart.ShoppingCart;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * 确认订单
 *
 * @author MaoLin Wang
 * @date 2021/1/15 5:50 下午
 */
@Setter
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConfirmOrder implements Serializable {

    private static final long serialVersionUID = 7901277068858185412L;
    @JsonSerialize(using = ToStringSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long shopId;
    private String shopName;
    /**
     * 店铺优惠券
     */
    private List<CouponSimple> couponList;
    private List<ShoppingCart> goodsList;



    @Override
    public String toString() {
        return "ConfirmOrder{" +
                "shopId=" + shopId +
                ", shopName='" + shopName + '\'' +
                ", couponList=" + couponList +
                ", goodsList=" + goodsList +
                '}';
    }
}
